package com.xy.masterdata;

import com.xy.ddd.core.config.FrameworkAutoConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;

@SpringBootApplication(scanBasePackages = {"com.xy.masterdata"}, exclude = DataSourceAutoConfiguration.class)
@ImportAutoConfiguration(classes = {FrameworkAutoConfig.class})
@RefreshScope
@EnableDiscoveryClient
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class);
    }

}
